﻿@model VendorNavigationModel

@using Nop.Core.Domain.Vendors

@if (Model.Vendors.Count > 0)
{
    <section class="block block-vendor-navigation">
        <h2 class="title">
            @T("Vendors")
        </h2>
        <div class="listbox">
            <ul class="list">
                @foreach (var vendor in Model.Vendors)
                {
                    <li>
                        <a href="@(await NopUrl.RouteGenericUrlAsync<Vendor>(new { SeName = vendor.SeName }))">@vendor.Name</a>
                    </li>
                }
            </ul>
            @if (Model.TotalVendors > Model.Vendors.Count)
            {
                <div class="view-all">
                    <a href="@Url.RouteUrl(NopRouteNames.General.VENDORS)">@T("Vendors.ViewAll")</a>
                </div>
            }
        </div>
    </section>
}